<template>
    <!-- 应用 -->
    <entity-manager :fields="fields" :queryFields="queryFields" apiPrefix="/base/app" :tree="false" ref="entityManagerRef" :params="params"
                    operationsWidth="230px">
    </entity-manager>
</template>

<script setup>

import { ref } from "vue"

const fields = [
	{label: "分类id", prop: "categoryId", max: 64},
	{label: "应用编码", prop: "code", max: 64},
	{label: "应用名称", prop: "name", max: 255},
	{label: "应用图标", prop: "icon", max: 255},
	{label: "应用类型，0：内部应用，1：外部应用", prop: "type", max: 64},
	{label: "应用支持平台，pc/app/h5/mp寺", prop: "platform", max: 255},
	{label: "应用路径或地址", prop: "url", max: 255},
	{label: "应用状态，0：下架，1上架", prop: "status", },
	{label: "应用打开方式：inner/new/fullscreen", prop: "openType", max: 64},
	{label: "排序", prop: "sort", max: 16},
	{label: "应用备注", prop: "remark", max: 255},
	{label: "应用附加信息", prop: "metadata", max: 512},
    {label: "添加时间", prop: "createTime", width: "160px", system: true},
    {label: "修改时间", prop: "updateTime", width: "160px", system: true}
]
const queryFields = []
const entityManagerRef = ref()
const params = ref({})

function reload() {
    entityManagerRef.value.reload()
}
</script>